package com.xw.model;

import lombok.Getter;
import lombok.Setter;

import java.util.Date;
import javax.persistence.*;

@Getter
@Setter
public class News {
    @Id
    private String id;

    /**
     * 新闻名称
     */
    @Column(name = "news_name")
    private String newsName;

    /**
     * 内容 富文本
     */
    @Column(name = "news_content")
    private String newsContent;
    /**
     * 封面图
     */
    @Column(name = "news_thumb")
    private String newsThumb;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 是否置顶 0.否 1.是
     */
    private Integer isTop;



}